%Calculate deltas
M = dlmread('/home/mysql/vwclientes.csv', '\t');
A=zeros(size(M,1),size(M,2));
A(:,1)=M(:,1);
for i=1:size(M,1)
        mv= M(i,:);
        for j=3:size(M,2)
                A(i,j)=(M(i,j)-M(i,j-1))/median(mv(2:j));
        end
end
dlmwrite('/home/undavid/delta_median.csv', A, 'delimiter', '\t', 'precision', '%s')